'''
def fib(max):
    n,a,b = 0,0,1

    while n < max:
        #print(b)
        yield  b
        a,b = b,a+b
        n += 1
 #   return 'done'



data = fib(10)
print(data)

print(data.__next__())
print(data.__next__())
print("干点别的事")
print(data.__next__())
print(data.__next__())
print(data.__next__())
print(data.__next__())
print(data.__next__())
'''

def foo():
    print ("test001")
    yield 1

    print("002")
    yield  2

g = foo()

next(g)
next(g)

print("分割线")
for i in foo():
    print(i)



